﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Code.ProductType
{
    public class ProductTypeController
    {
        public List<ProductTypeInfo> GetListProductType()
        {
            ProductTypeDataAccess pda = new ProductTypeDataAccess();
            return pda.GetListProductType();
        }
        public List<string> GetListProductTypeName()
        {
            ProductTypeDataAccess pda = new ProductTypeDataAccess();
            return pda.GetListProductTypeName();
        }

        public int GetProductTypeIDByName(string sName)
        {
            ProductTypeDataAccess pda = new ProductTypeDataAccess();
            return pda.GetProductTypeIDByName(sName);
        }
    }
}
